package com.hksj.Intelligentmanagement.auth.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.hksj.Intelligentmanagement.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 菜单表
 */
@Data
@TableName("sys_menu")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Menu extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "父级菜单id")
    @TableField("pid")
    private String pid;

    @ApiModelProperty(value = "类型 1 = 菜单  2 = 按钮 ")
    @TableField("type")
    private Integer type;


    @ApiModelProperty(value = "菜单名")
    @TableField("menu_name")
    private String menuName;

    @ApiModelProperty(value = "路由地址")
    @TableField("path")
    private String path;

    @ApiModelProperty(value = "组件路径")
    @TableField("component")
    private String component;

    @ApiModelProperty(value = "菜单状态（0显示 1隐藏）")
    @TableField("visible")
    private String visible;

    @ApiModelProperty(value = "菜单状态（0正常 1停用）")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "权限标识")
    @TableField("perms")
    private String perms;

    @ApiModelProperty(value = "菜单图标")
    @TableField("icon")
    private String icon;

    @ApiModelProperty(value = "排序号")
    @TableField("sort_no")
    private Integer sortNo;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "跳转路径")
    @TableField("redirect")
    private String redirect;

    @ApiModelProperty(value = "是否删除（0未删除 1已删除）")
    @TableLogic  //逻辑删除和义务删除标识
    @TableField("del_flag")
    private Integer delFlag;

    @TableField("create_by")
    private String createBy;

    @TableField("update_by")
    private String updateBy;

}
